package com.tianji.learning.controller;


import com.tianji.learning.domain.vo.SignRecordVO;
import com.tianji.learning.domain.vo.SignResultVO;
import com.tianji.learning.service.ISignRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学霸天梯榜 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-04-15
 */
@RestController
@RequestMapping("/sign-records")
@RequiredArgsConstructor
@Slf4j
@Api(tags = "签到记录管理")
public class SignRecordController {
    private final ISignRecordService signRecordService;

    @PostMapping
    @ApiOperation(value = "增加签到记录接口")
    public SignResultVO addSignRecord() {
        return signRecordService.addSignRecord();
    }
    @GetMapping
    @ApiOperation(value = "查询今日签到记录接口")
    public SignRecordVO queryTodaySignRecord() {
        return signRecordService.queryTodaySignRecord();
    }
}
